From 8d97480c4629b4c0f5c79a5734b7eaed743ebc1b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 9 Aug 2020 10:23:47 +0100 Subject: [PATCH] Don't build demos, examples, installed-tests under --- debian/control | 1 + debian/control.in | 1 + debian/rules | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/debian/control b/debian/control index 0b2b9145c1..e6df6dc1db 100644 --- a/debian/control +++ b/debian/control @@ -201,6 +201,7 @@ Description: documentation for the GTK graphical user interface library in /usr/share/doc/libgtk-4-doc/ . Package: gtk-4-examples +Build-Profiles: Section: x11 Architecture: any Depends: gtk-3-examples, diff --git a/debian/control.in b/debian/control.in index 8527ed70a3..d748887288 100644 --- a/debian/control.in +++ b/debian/control.in @@ -201,6 +201,7 @@ Description: documentation for the GTK graphical user interface library in /usr/share/doc/@DOC_PKG@/ . Package: @EXAMPLES_PKG@ +Build-Profiles: Section: x11 Architecture: any Depends: gtk-3-examples, diff --git a/debian/rules b/debian/rules index 21b1f6fef3..34f191f305 100755 --- a/debian/rules +++ b/debian/rules @@ -106,6 +106,16 @@ else configure_flags_deb += -Dgtk_doc=true endif +ifeq ($(filter %-examples,$(built_binaries)),) +configure_flags_deb += -Dbuild-examples=false +configure_flags_deb += -Ddemos=false +configure_flags_deb += -Dinstall-tests=false +else +configure_flags_deb += -Dbuild-examples=true +configure_flags_deb += -Ddemos=true +configure_flags_deb += -Dinstall-tests=true +endif + configure_flags_udeb = \ -Dbroadway-backend=false \ -Dbuild-examples=false \ -- 2.30.2